package com.leng.service.impl;/**
 * @Author: 冷俊杰
 * @Description: TODO
 * @DateTime: 2022/8/28 18:34
 **/

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leng.entity.Files;
import com.leng.mapper.FileMapper;
import com.leng.service.FileService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *@作者: 冷俊杰
 *@类名: FileServiceImpl类
 *@创建时间: 2022/8/28 18:34
 *@描述:
 *
 *
 *@修改原图
 *@修改作者
 *@修改时间
 */
@Service
public class FileServiceImpl extends ServiceImpl<FileMapper, Files> implements FileService {
    @Override
    public Page<Files> getFileList(Page<Files> page, String name) {
        List<Files> userList = this.baseMapper.getFileList(page,name);
        //将刚刚动态sql查询的内容给page对象，然后去实现分页
        page.setRecords(userList);
        return page;
    }
}
